package com.he.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.he.entity.UserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author He
 * @version 1.0
 * @Date 2023/9/8 9:18
 * @Desc 用户角色关联表(UserRole)表数据库访问层
 */
@Repository
public interface UserRoleMapper extends BaseMapper<UserRole> {
    /**
     * 添加用户角色
     *
     * @param userId     用户id
     * @param roleIdList 角色id集合
     */
    void insertUserRole(@Param("userId") Integer userId, @Param("roleIdList") List<String> roleIdList);
}
